﻿namespace CleanLite.Domain.Interfaces
{
    public interface IBaseRepository<IEntity> where IEntity : class
    {
        Task<bool> InsertAsync(IEntity entity);

        Task<bool> InsertAsync(List<IEntity> entitys);

        Task<bool> UpdateAsync(IEntity entity);

        Task<bool> DeleteAsync(object Id);

        Task<List<IEntity>> GetListAsync();

        Task<List<IEntity>> GetToPageListAsync(int index, int size, int total);
    }
}